Binding of Isaac - Afterbirth+ Lua Reference/Guide
EntityLaser Class Reference
Inheritance diagram for EntityLaser:
Entity

Public Member Functions

 SetTimeout (integer Value)
 
 SetActiveRotation (integer Delay, float AngleDegrees, float RotationSpd, boolean TimeoutComplete)
 
integer GetRenderZ ()
 
const VectorGetEndPoint ()
 
boolean IsSampleLaser ()
 
const HomingLaser::SamplList & GetSamples ()
 
const HomingLaser::SamplList & GetNonOptimizedSamples ()
 
 SetOneHit (boolean Value)
 
 SetHomingType (LaserHomingType Type)
 
 SetMaxDistance (float Distance)
 
boolean IsCircleLaser ()
 
 SetBlackHpDropChance (float Chance)
 
 SetMultidimensionalTouched (boolean Value)
 
- Public Member Functions inherited from Entity
table GetData ()
 
 Update ()
 
 Render (Vector Offset)
 
boolean RenderShadowLayer (Vector Offset)
 
 PostRender ()
 
boolean TakeDamage (float Damage, integer Flags, EntityRef Source, integer DamageCountdown)
 
boolean HasMortalDamage ()
 
 Kill ()
 
 Die ()
 
 Remove ()
 
 BloodExplode ()
 
 AddVelocity (Vector Velocity)
 
 MultiplyFriction (float Value)
 
 SetColor (Color Color, integer Duration, integer Priority, boolean Fadeout, boolean Share)
 
const ColorGetColor ()
 
 SetSpriteFrame (string AnimationName, integer FrameNum)
 
 SetSpriteOverlayFrame (string AnimationName, integer FrameNum)
 
 SetSize (float Size, Vector SizeMulti, integer NumGridCollisionPoints)
 
boolean CollidesWithGrid ()
 
boolean IsEnemy ()
 
boolean IsActiveEnemy (boolean includeDead)
 
boolean IsVulnerableEnemy ()
 
boolean IsFlying ()
 
 AddEntityFlags (integer Flags)
 
 ClearEntityFlags (integer Flags)
 
integer GetEntityFlags ()
 
boolean HasEntityFlags (integer Flags)
 
boolean HasFullHealth ()
 
 AddHealth (float HitPoints)
 
 AddPoison (EntityRef Source, integer Duration, float Damage)
 
 AddFreeze (EntityRef Source, integer Duration)
 
 AddSlowing (EntityRef Source, integer Duration, float SlowValue, Color SlowColor)
 
 AddCharmed (integer Duration)
 
 AddConfusion (EntityRef Source, integer Duration, boolean IgnoreBosses)
 
 AddMidasFreeze (EntityRef Source, integer Duration)
 
 AddFear (EntityRef Source, integer Duration)
 
 AddBurn (EntityRef Source, integer Duration, float Damage)
 
 AddShrink (EntityRef Source, integer Duration)
 
 RemoveStatusEffects ()
 
boolean Exists ()
 
boolean IsDead ()
 
boolean IsVisible ()
 
boolean IsInvincible ()
 
boolean CanShutDoors ()
 
boolean IsBoss ()
 
BossId GetBossID ()
 
EntityGetLastParent ()
 
EntityGetLastChild ()
 
boolean HasCommonParentWithEntity (Entity Other)
 
boolean IsFrame (integer Frame, integer Offset)
 
RNGGetDropRNG ()
 
SpriteGetSprite ()
 
EntityPlayer ToPlayer ()
 
EntityEffect ToEffect ()
 
EntityNPC ToNPC ()
 
EntityPickup ToPickup ()
 
EntityFamiliar ToFamiliar ()
 

Static Public Member Functions

static EntityLaserShootAngle (integer Variant, Vector SourcePos, float AngleDegrees, integer Timeout, Vector PosOffset, Entity Source)
 
static Vector CalculateEndPoint (Vector Start, Vector Dir, Vector PositionOffset, Entity Parent, float Margin)
 

Public Attributes

integer TearFlags
 
float Angle
 
float Radius
 
Vector ParentOffset
 
float StartAngleDegrees
 
float AngleDegrees
 
float LastAngleDegrees
 
integer Timeout
 
boolean FirstUpdate
 
boolean SampleLaser
 
boolean Shrink
 
float LaserLength
 
HomingLaser HomingLaser
 
float CurveStrength
 
boolean IsActiveRotating
 
integer RotationDelay
 
float RotationDegrees
 
float RotationSpd
 
float MaxDistance
 
LaserHomingType HomingType
 
Vector EndPoint
 
boolean DisableFollowParent
 
EntityBounceLaser
 
float BlackHpDropChance
 
boolean OneHit
 
boolean GridHit
 
- Public Attributes inherited from Entity
float Friction
 
Vector Position
 
Vector Velocity
 
const EntityType Type
 
integer Variant
 
integer SubType
 
EntityType SpawnerType
 
integer SpawnerVariant
 
const ColorSplatColor
 
boolean Visible
 
const VectorPositionOffset
 
integer RenderZOffset
 
boolean FlipX
 
const VectorSpriteOffset
 
const VectorSpriteScale
 
float SpriteRotation
 
Vector SizeMulti
 
float Mass
 
float MaxHitPoints
 
float HitPoints
 
const integer Index
 
const VectorTargetPosition
 
GridCollisionClass GridCollisionClass
 
EntityCollisionClass EntityCollisionClass
 
float CollisionDamage
 
const integer SpawnGridIndex
 
EntityParent
 
EntityChild
 
EntityTarget
 
EntitySpawnerEntity
 
const integer FrameCount
 
const integer InitSeed
 
const integer DropSeed
 
float DepthOffset
 

Additional Inherited Members

- Static Public Attributes inherited from Entity
static Color Color
 
static float Size
 

Member Function Documentation

◆ CalculateEndPoint()

static Vector EntityLaser::CalculateEndPoint ( Vector  Start,
Vector  Dir,
Vector  PositionOffset,
Entity  Parent,
float  Margin 
)
static

◆ GetEndPoint()

const Vector& EntityLaser::GetEndPoint ( )

◆ GetNonOptimizedSamples()

const HomingLaser::SamplList& EntityLaser::GetNonOptimizedSamples ( )

◆ GetRenderZ()

integer EntityLaser::GetRenderZ ( )

◆ GetSamples()

const HomingLaser::SamplList& EntityLaser::GetSamples ( )

◆ IsCircleLaser()

boolean EntityLaser::IsCircleLaser ( )

◆ IsSampleLaser()

boolean EntityLaser::IsSampleLaser ( )

◆ SetActiveRotation()

EntityLaser::SetActiveRotation ( integer  Delay,
float  AngleDegrees,
float  RotationSpd,
boolean  TimeoutComplete 
)

◆ SetBlackHpDropChance()

EntityLaser::SetBlackHpDropChance ( float  Chance)

◆ SetHomingType()

EntityLaser::SetHomingType ( LaserHomingType  Type)

◆ SetMaxDistance()

EntityLaser::SetMaxDistance ( float  Distance)

◆ SetMultidimensionalTouched()

EntityLaser::SetMultidimensionalTouched ( boolean  Value)

◆ SetOneHit()

EntityLaser::SetOneHit ( boolean  Value)

◆ SetTimeout()

EntityLaser::SetTimeout ( integer  Value)

◆ ShootAngle()

static EntityLaser& EntityLaser::ShootAngle ( integer  Variant,
Vector  SourcePos,
float  AngleDegrees,
integer  Timeout,
Vector  PosOffset,
Entity  Source 
)
static

Member Data Documentation

◆ Angle

float EntityLaser::Angle

◆ AngleDegrees

float EntityLaser::AngleDegrees

◆ BlackHpDropChance

float EntityLaser::BlackHpDropChance

◆ BounceLaser

Entity& EntityLaser::BounceLaser

◆ CurveStrength

float EntityLaser::CurveStrength

◆ DisableFollowParent

boolean EntityLaser::DisableFollowParent

◆ EndPoint

Vector EntityLaser::EndPoint

◆ FirstUpdate

boolean EntityLaser::FirstUpdate

◆ GridHit

boolean EntityLaser::GridHit

◆ HomingLaser

HomingLaser EntityLaser::HomingLaser

◆ HomingType

LaserHomingType EntityLaser::HomingType

◆ IsActiveRotating

boolean EntityLaser::IsActiveRotating

◆ LaserLength

float EntityLaser::LaserLength

◆ LastAngleDegrees

float EntityLaser::LastAngleDegrees

◆ MaxDistance

float EntityLaser::MaxDistance

◆ OneHit

boolean EntityLaser::OneHit

◆ ParentOffset

Vector EntityLaser::ParentOffset

◆ Radius

float EntityLaser::Radius

◆ RotationDegrees

float EntityLaser::RotationDegrees

◆ RotationDelay

integer EntityLaser::RotationDelay

◆ RotationSpd

float EntityLaser::RotationSpd

◆ SampleLaser

boolean EntityLaser::SampleLaser

◆ Shrink

boolean EntityLaser::Shrink

◆ StartAngleDegrees

float EntityLaser::StartAngleDegrees

◆ TearFlags

integer EntityLaser::TearFlags

◆ Timeout

integer EntityLaser::Timeout